package com.future.domain.DTO;

import lombok.Data;

import java.util.Date;

@Data
public class MediaResourceDTO {
    private Long id;
    private String title;
    private String content;
    private String fileName;
    private String filePath;
    private String fileType;
    private Long fileSize;
    
    // 添加文件类型图标字段
    public String getFileIcon() {
        if (fileType == null) return "file";
        return fileType.equals("图片") ? "image" : "video";
    }
}